FHE.sol
isInitialized
function isInitialized(ebool v) internal pure returns (bool)
isInitialized
function isInitialized(euint8 v) internal pure returns (bool)
isInitialized
function isInitialized(euint16 v) internal pure returns (bool)
isInitialized
function isInitialized(euint32 v) internal pure returns (bool)
isInitialized
function isInitialized(euint64 v) internal pure returns (bool)
isInitialized
function isInitialized(euint128 v) internal pure returns (bool)
isInitialized
function isInitialized(euint256 v) internal pure returns (bool)
isInitialized
function isInitialized(eaddress v) internal pure returns (bool)
mathHelper
function mathHelper(uint8 utype, uint256 lhs, uint256 rhs, function (uint8,bytes,bytes) pure external returns (bytes) impl) internal pure returns (uint256 result)
add
function add(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the add operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
add
function add(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the add operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
add
function add(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the add operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
add
function add(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the add operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
add
function add(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the add operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
sealoutput
function sealoutput(ebool value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a ebool ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | ebool | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint8 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint8 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint8 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint16 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint16 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint16 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint32 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint32 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint32 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint64 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint64 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint64 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint128 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint128 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint128 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(euint256 value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on a euint256 ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | euint256 | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
sealoutput
function sealoutput(eaddress value, bytes32 publicKey) internal pure returns (string)
performs the sealoutput function on an eaddress ciphertext. This operation returns the plaintext value, sealed for the public key provided
Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
value | eaddress | Ciphertext to decrypt and seal |
publicKey | bytes32 | Public Key that will receive the sealed plaintext |
Return Values
Name | Type | Description |
---|---|---|
[0] | string | Plaintext input, sealed for the owner of publicKey |
decrypt
function decrypt(ebool input1) internal pure returns (bool)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | ebool | the input ciphertext |
decrypt
function decrypt(euint8 input1) internal pure returns (uint8)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint8 | the input ciphertext |
decrypt
function decrypt(euint16 input1) internal pure returns (uint16)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint16 | the input ciphertext |
decrypt
function decrypt(euint32 input1) internal pure returns (uint32)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint32 | the input ciphertext |
decrypt
function decrypt(euint64 input1) internal pure returns (uint64)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint64 | the input ciphertext |
decrypt
function decrypt(euint128 input1) internal pure returns (uint128)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint128 | the input ciphertext |
decrypt
function decrypt(euint256 input1) internal pure returns (uint256)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint256 | the input ciphertext |
decrypt
function decrypt(eaddress input1) internal pure returns (address)
Performs the decrypt operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | eaddress | the input ciphertext |
lte
function lte(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the lte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lte
function lte(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the lte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lte
function lte(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the lte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lte
function lte(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the lte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lte
function lte(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the lte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
sub
function sub(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the sub operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
sub
function sub(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the sub operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
sub
function sub(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the sub operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
sub
function sub(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the sub operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
sub
function sub(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the sub operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
mul
function mul(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the mul operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
mul
function mul(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the mul operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
mul
function mul(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the mul operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
mul
function mul(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the mul operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
lt
function lt(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the lt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lt
function lt(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the lt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lt
function lt(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the lt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lt
function lt(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the lt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
lt
function lt(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the lt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
select
function select(ebool input1, ebool input2, ebool input3) internal pure returns (ebool)
select
function select(ebool input1, euint8 input2, euint8 input3) internal pure returns (euint8)
select
function select(ebool input1, euint16 input2, euint16 input3) internal pure returns (euint16)
select
function select(ebool input1, euint32 input2, euint32 input3) internal pure returns (euint32)
select
function select(ebool input1, euint64 input2, euint64 input3) internal pure returns (euint64)
select
function select(ebool input1, euint128 input2, euint128 input3) internal pure returns (euint128)
select
function select(ebool input1, euint256 input2, euint256 input3) internal pure returns (euint256)
select
function select(ebool input1, eaddress input2, eaddress input3) internal pure returns (eaddress)
req
function req(ebool input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | ebool | the input ciphertext |
req
function req(euint8 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint8 | the input ciphertext |
req
function req(euint16 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint16 | the input ciphertext |
req
function req(euint32 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint32 | the input ciphertext |
req
function req(euint64 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint64 | the input ciphertext |
req
function req(euint128 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint128 | the input ciphertext |
req
function req(euint256 input1) internal pure
Performs the req operation on a ciphertext
Verifies that the input value matches a valid ciphertext. Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
input1 | euint256 | the input ciphertext |
div
function div(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the div operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
div
function div(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the div operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
div
function div(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the div operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
gt
function gt(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the gt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gt
function gt(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the gt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gt
function gt(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the gt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gt
function gt(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the gt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gt
function gt(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the gt operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gte
function gte(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the gte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gte
function gte(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the gte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gte
function gte(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the gte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gte
function gte(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the gte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
gte
function gte(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the gte operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
rem
function rem(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the rem operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
rem
function rem(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the rem operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
rem
function rem(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the rem operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
and
function and(ebool lhs, ebool rhs) internal pure returns (ebool)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | ebool | The first input |
rhs | ebool | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
and
function and(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
and
function and(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
and
function and(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
and
function and(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
and
function and(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the and operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
or
function or(ebool lhs, ebool rhs) internal pure returns (ebool)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | ebool | The first input |
rhs | ebool | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
or
function or(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
or
function or(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
or
function or(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
or
function or(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
or
function or(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the or operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
xor
function xor(ebool lhs, ebool rhs) internal pure returns (ebool)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | ebool | The first input |
rhs | ebool | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
xor
function xor(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
xor
function xor(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
xor
function xor(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
xor
function xor(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
xor
function xor(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the xor operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
eq
function eq(ebool lhs, ebool rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | ebool | The first input |
rhs | ebool | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(euint256 lhs, euint256 rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint256 | The first input |
rhs | euint256 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
eq
function eq(eaddress lhs, eaddress rhs) internal pure returns (ebool)
This function performs the eq operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | eaddress | The first input |
rhs | eaddress | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(ebool lhs, ebool rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | ebool | The first input |
rhs | ebool | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint8 lhs, euint8 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint16 lhs, euint16 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint32 lhs, euint32 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint64 lhs, euint64 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint128 lhs, euint128 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(euint256 lhs, euint256 rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint256 | The first input |
rhs | euint256 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
ne
function ne(eaddress lhs, eaddress rhs) internal pure returns (ebool)
This function performs the ne operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | eaddress | The first input |
rhs | eaddress | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | ebool | The result of the operation |
min
function min(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the min operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
min
function min(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the min operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
min
function min(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the min operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
min
function min(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the min operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
min
function min(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the min operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
max
function max(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the max operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
max
function max(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the max operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
max
function max(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the max operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
max
function max(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the max operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
max
function max(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the max operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
shl
function shl(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the shl operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
shl
function shl(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the shl operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
shl
function shl(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the shl operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
shl
function shl(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the shl operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
shl
function shl(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the shl operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
shr
function shr(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the shr operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint8 | The first input |
rhs | euint8 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint8 | The result of the operation |
shr
function shr(euint16 lhs, euint16 rhs) internal pure returns (euint16)
This function performs the shr operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint16 | The first input |
rhs | euint16 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint16 | The result of the operation |
shr
function shr(euint32 lhs, euint32 rhs) internal pure returns (euint32)
This function performs the shr operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint32 | The first input |
rhs | euint32 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint32 | The result of the operation |
shr
function shr(euint64 lhs, euint64 rhs) internal pure returns (euint64)
This function performs the shr operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint64 | The first input |
rhs | euint64 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint64 | The result of the operation |
shr
function shr(euint128 lhs, euint128 rhs) internal pure returns (euint128)
This function performs the shr operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access
Parameters
Name | Type | Description |
---|---|---|
lhs | euint128 | The first input |
rhs | euint128 | The second input |
Return Values
Name | Type | Description |
---|---|---|
[0] | euint128 | The result of the operation |
rol
function rol(euint8 lhs, euint8 rhs) internal pure returns (euint8)
This function performs the rol operation
If any of the inputs are expected to be a ciphertext, it verifies that the value matches a valid ciphertext Pure in this function is marked as a hack/workaround - note that this function is NOT pure as fetches of ciphertexts require state access